package Guigu11.Overwrite;

public class Human {

	String name;
	int age;
	
	public Human()
	{
		
	}
	
	public Human(String name,int age)
	{
		this.name = name;
		this.age = age;
	}
	
	public void eat()
	{
		System.out.println("吃饭");
	}
	
	public void walk(int distance)
	{
		System.out.println("走路，走的距离是"+distance+"公里");
	}
}
